<?php


namespace App\server\SMS;
use App\server\SMS\SMSServiceA;
use App\server\SMS\SMSServiceB;
class SMSServiceFactory  {
    public static function getService($serviceType) {
      switch ($serviceType) {
        case 'duanxinbao':
          return new SMSServiceA();
        case 'rongliantyun':
          return new SMSServiceB();
        default:
         return '您选择的发送格式错误';
      }
    }
  }
